import { useRouteError } from "react-router";

export default function Error() {
  const error = useRouteError();
  return (
    <div>
      <div>错误监听，loader或者action出错时候</div>
      <div>{JSON.stringify(error)}</div>
    </div>
  );
}
